package com.woniu.bh.beautysalon.web.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.bh.beautysalon.model.dto.BeautysalonBaseInfoDto;
import com.woniu.bh.beautysalon.model.dto.CustomerDto;
import com.woniu.bh.beautysalon.model.dto.MyAdDto;
import com.woniu.bh.common.core.domain.beautysalon.Beautysalon;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author cxb
 * @since 2020-10-13
 */
public interface BeautysalonMapper extends BaseMapper<Beautysalon> {

    IPage<CustomerDto> pageQuery(Page<CustomerDto> page, @Param("beautysalonId") Integer beautysalonId, @Param("sex") String sex, @Param("beforeAge") Integer beforeAge, @Param("afterAge") Integer afterAge);

    /**
     * @description: 分页条件查询美容馆基本信息
     * @param: page
     * @param: beforeDate
     * @param: afterDate
     * @param: beautysalonName
     * @param: beautysalonStatus
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.woniu.bh.beautysalon.model.dto.BeautysalonBaseInfoDto>
     */
    IPage<BeautysalonBaseInfoDto> getBaseInfo(Page<BeautysalonBaseInfoDto> page,@Param("beforeDate") Date beforeDate,@Param("afterDate") Date afterDate,@Param("beautysalonName") String beautysalonName,@Param("beautysalonStatus") String beautysalonStatus);
    /**
     * @description: 我的广告
     * @param: myAdDtoPage
     * @param: advertisementStatus
     * @param: advertisementTheme
     * @param: afterDate
     * @param: beforerDate
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.woniu.bh.beautysalon.model.dto.MyAdDto>
     */
    IPage<MyAdDto> getAllAds(Page<MyAdDto> myAdDtoPage,@Param("advertisementStatus") Integer advertisementStatus,@Param("advertisementTheme") String advertisementTheme,@Param("afterDate") Date afterDate,@Param("beforeDate") Date beforeDate,@Param("beautysalonId") Integer beautysalonId);
}
